home *** CD-ROM | disk | FTP | other *** search
/ Champak 43 / Vol 43.iso / games / superdog.swf / scripts / DefineSprite_46_bomb / frame_1 / DoAction.as
Encoding:
Text File  |  2007-06-25  |  421 b   |  18 lines

  1. stop();
  2. _parent._parent.enemy_array.push(this._name);
  3. var yinc = 0;
  4. onEnterFrame = function()
  5. {
  6.    if(_parent._parent.pauses == false)
  7.    {
  8.       yinc += 1;
  9.       this._y += yinc;
  10.       if(this.atkfk.hitTest(_parent._parent.man.hitfk) or this.getBounds(_parent._parent).yMax > 500)
  11.       {
  12.          _parent._parent.bomb_s.start();
  13.          delete this.onEnterFrame;
  14.          this.play();
  15.       }
  16.    }
  17. };
  18.